#include <stdio.h>

int main()
{
    int head, feet, flag = 0;
    scanf("%d%d", &head, &feet);
    for(int kun = 0;kun <= head;kun++)
    {
        if(kun*2+4*(head-kun)==feet)
        {
            flag = 1;
            printf("chickens = %d; rabbits = %d", kun, head - kun);
            break;
        }
    }
    if(flag == 0)
        printf("No solution!");
        
        return 0; 
    }
